package com.wangshouyu.mp.user.tag;

import com.wangshouyu.mp.base.response.BaseResponse;
import com.wangshouyu.mp.user.UserList;

import java.util.Objects;

/**
 * @author 王守钰
 * @date 2020年12月23日 15:54
 * @description 标签用户响应结果
 */
public class TagUserResponse extends BaseResponse {

    /**
     * 这次获取的粉丝数量
     */
    private Long count;

    /**
     * 粉丝列表
     */
    private UserList data;

    /**
     * 拉取列表最后一个用户的openid
     */
    private String nextOpenId;

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public UserList getData() {
        return data;
    }

    public void setData(UserList data) {
        this.data = data;
    }

    public String getNextOpenId() {
        return nextOpenId;
    }

    public void setNextOpenId(String nextOpenId) {
        this.nextOpenId = nextOpenId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        TagUserResponse that = (TagUserResponse) o;
        return Objects.equals(count, that.count) && Objects.equals(data, that.data) && Objects.equals(nextOpenId, that.nextOpenId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), count, data, nextOpenId);
    }

    @Override
    public String toString() {
        super.toString();
        return "TagUserResponse{" +
                "count=" + count +
                ", data=" + data +
                ", nextOpenId='" + nextOpenId + '\'' +
                '}';
    }
}
